<template>
  <el-checkbox-group
    v-model="checkedCities"  @change="getBoxGroup($event,'fidelds')">
    <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
  </el-checkbox-group>
</template>
<script>
const cityOptions = ['上海', '北京', '广州', '深圳'];
export default {
  data() {
    return {
      checkedCities: ['上海', '北京'],
      cities: cityOptions
    };
  },
  methods:{
    getBoxGroup(e,str){
      console.log(e,str)
    }
  }
};
</script>
